<jsp:useBean id="error" class="service.ErrorService" scope="request"></jsp:useBean>
<jsp:useBean id="validate" class="service.ValidateInput" scope="session" />
<jsp:useBean id="data" class="service.DataService" scope="session" />
<jsp:useBean id="postbackData" class="service.PostbackData" scope="request" />
<jsp:setProperty name="postbackData" property="*"/>

<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="style.css" type="text/css">
<title>Opret operatør</title>
</head>
<body>
<div id="wrapper">
	<div id="header">
		<h1>Opret operatør</h1>
		<jsp:getProperty property="areaaccess" name="data"/>
	</div><!-- #header-->
<div id="menu">
	<a class="menu" href="Admin">Vis operatører</a>
	&#160;&#160;&#160;&#160;&#160; <!-- 5 x space -->
	<a class="menu" href="Admin?page=2">Opret operatør</a>
	</div>
	<div id="content">
	<h2>Opret ny operatør</h2>
	
	<br /><jsp:getProperty property="error" name="error"/>
	
	<form method="POST">
			<br />
			<table style="border-spacing:10px;">
				<tr>
    				<td>ID</td>
    				<td colspan="2"><input type="text" size="20" maxlength="8" name="id" value="<jsp:getProperty property="id" name="postbackData"/>"></td>
				</tr>
				<tr>
    				<td>Navn</td>
    				<td colspan="2"><input type="text" size="20" maxlength="20" name="name" value="<jsp:getProperty property="name" name="postbackData"/>"></td>
				</tr>
				<tr>
    				<td>CPR-nr.</td>
    				<td colspan="2"><input type="text" size="20" maxlength="10" name="cpr" value="<jsp:getProperty property="cpr" name="postbackData"/>"></td>
				</tr>
				<tr>
    				<td>Rolle</td>
    				<td colspan="2">
    				<select name="role">
    					<option value="Operatør">Operatør</option>
    					<option value="Værkfører">Værkfører</option>
    					<option value="Farmaceut">Farmaceut</option>
  						<option value="Administrator">Administrator</option>
					</select>
    				</td>
				</tr>
				<tr>
    				<td></td>
    				<td style="text-align:right"><a class="normal" href="Admin?page=1">Tilbage</a></td>
    				<td style="text-align:right;width:50px;"><input type="submit" value="Gem"></td>
				</tr>
			</table>
		</form>
	</div>
	<div id="footer">
	</div>
	<br>
	<p>
    <a href="http://validator.w3.org/check?uri=referer"><img
      src="http://www.w3.org/Icons/valid-html401" alt="Valid HTML 4.01 Transitional" height="31" width="88"></a>
      <a href="http://jigsaw.w3.org/css-validator/check/referer">
        <img style="border:0;width:88px;height:31px"
            src="http://jigsaw.w3.org/css-validator/images/vcss"
            alt="Valid CSS!" />
    </a>
  </p>
</div>
</body>
</html>